'''
@Company: TWL
@Author: xue jian
@Email: xuejian@kanzhun.com
@Date: 2020-01-16 18:07:40
'''
import os
import sys
import json
sys.path.append(os.path.abspath(os.path.join(os.path.dirname('__file__'), os.path.pardir)))

import thrift
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from hulk_proxy.HulkProxyServ import Client
from scan_data.ttypes import ScanData

__HOST = "172.21.32.23"
__PORT = 10088

try:
    tsocket = TSocket.TSocket(__HOST, __PORT)
    transport = TTransport.TFramedTransport(tsocket)
    protocol = TBinaryProtocol.TBinaryProtocol(transport)
    client = Client(protocol)

    transport.open()
    
    # ttl = 60*60*24*90*2
    # client.expire(ttl)
    # client.hdel_all('boss_active_info')
    # client.hdel_all('dz_boss_active_info')
    # client.hdel_all('geek_active_info')
    # client.hdel_all('dz_geek_active_info')
    # client.hdel_all('wxc_recall_geek')
    # client.hdel_all('base_recall_boss')
    # client.hdel_all('hulk_recall_boss')
    client.hdel_all('tf_recall_geek')
    


    transport.close()
except thrift.TException as ex:
    print(ex.message)